/**
 * 
 */
package com.local.guava.compare;



/**
 * @author admin
 *
 */
public class CompareToMethod {

	
	public void jdkCompareTo(){
		Man m1 = new Man("郭富强",178.22,10000.00,17.5);
		Man m2 = new Man("郭富强",148.02,2000.00,15.5);
		System.out.println(m1.compareTo(m2));
	}
	
	public void guavaCompareTo(){
		Girl m1 = new Girl("晓红",158.02);
		Girl m2 = new Girl("晓红",158.02);
		System.out.println(m1.compareTo(m2));
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		CompareToMethod com = new CompareToMethod();
		com.jdkCompareTo();
		com.guavaCompareTo();
	}

}
